name | value |
---|---|
partnerPersonTradeName | Test AG |
billingContactCaption | Billing GmbH - billing department |
billingContactEmailAddress | billing@test-ag.example.org |
debitorNumberSuffix | 01 |
billable | true |
vatId | VAT123456 |
vatCountryCode | DE |
vatBusiness | true |
vatReverseCharge | false |
defaultPrefix | tsx |
GET /api/hs/office/persons?name=Test+AG
=> status: 200 OK
[ {
"uuid" : "4ff07cd9-aa15-4d46-bee4-a6a916dec7a1", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
} ]
In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.
POST /api/hs/office/bankaccounts
{
"holder" : "Billing GmbH - refund bank account",
"iban" : "DE02120300000000202051",
"bic" : "BYLADEM1001"
}
=> status: 201 CREATED 7081ae71-2aec-4f0f-a6c8-bff8e0db9be7
POST /api/hs/office/contacts
{
"caption" : "Billing GmbH, billing for Test AG",
"emailAddresses" : {
"main" : "test-ag@billing-GmbH.example.com"
}
}
=> status: 201 CREATED 98c2023b-0b77-4b3e-b6a8-f50cb0216f38
``` POST /api/hs/office/debitors